raar.agent.process.sensor
Interface RAWorldDependentSensor

All Known Implementing Classes:
RALightSensor, RAObjectSensor

public interface RAWorldDependentSensor

Sensors that are sensitive to operation in a certain type of world implement this interface to indicate this dependence.


Method Summary
 java.lang.String getPerceivedName()
          Return the perceived class (or object) name.
 boolean isPerceived(RAWorldObject obj)
          Return whether the object in question is perceivable by this sensor based on the current configuration.
 boolean isSuitable(RAWorldObject obj)
          Return whether the object in question is suitable for this sensor, i.e. perceivable either with the current or an other configuration.
 void setPerceivedName(java.lang.String name)
          Set the perceived class (or object) name.
 boolean usesClasses()
          Return whether this sensor uses classes (true) or objects (false).
 

Method Detail

isSuitable

public boolean isSuitable(RAWorldObject obj)
Return whether the object in question is suitable for this sensor, i.e. perceivable either with the current or an other configuration.


isPerceived

public boolean isPerceived(RAWorldObject obj)
Return whether the object in question is perceivable by this sensor based on the current configuration. If it is perceivable, it must also be suitable.


usesClasses

public boolean usesClasses()
Return whether this sensor uses classes (true) or objects (false).


getPerceivedName

public java.lang.String getPerceivedName()
Return the perceived class (or object) name.


setPerceivedName

public void setPerceivedName(java.lang.String name)
Set the perceived class (or object) name.